/**
 * 
 */
package com.feib.stms.dao;

import com.feib.stms.model.UploadFileTodoList;
import com.feib.stms.model.User;
import com.feib.stms.pagination.PaginatedList;

/**
 * @author Jeff Gu
 *
 */
public interface UploadFileTodoListDao {
	/**
	 * 讀取user待辦事項
	 * @param user
	 * @return
	 */
	public PaginatedList<UploadFileTodoList> queryUploadFileTodoList(User user, PaginatedList paginatedList);
	
	
	/**
	 * 新增待辦事項(需要先找出該user的權限)
	 * 1.檔案正式上傳後馬上依權限加入待辦事項
	 * 2.當審查至一定人數後轉放行需增加待辦事項
	 * 
	 * @param uploadFileTodoList
	 * @return
	 */
	public int addUploadFileTodoList(UploadFileTodoList uploadFileTodoList);
	
	
	/**
	 * 刪除待辦事項
	 * 檔案完成一個階段後須先刪除之前的待辦事項 再新增下一階段的待辦事項
	 * EX:審查轉放行
	 * @param uploadFilePk
	 * @return
	 */
	public int delete(Long uploadFilePk) ;

}
